﻿<Application x:Class="MVVMFramework.WPFDemo.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:view="clr-namespace:MVVMFramework.View;assembly=MVVMFramework.View"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="Shell.xaml">
    <Application.Resources>
        <view:BoolToVisibilityConverter x:Key="VisibleIfTrue"/>
        <view:BoolToVisibilityConverter x:Key="CollapsedIfTrue" IsReversed="True"/>
        <view:BoolToVisibilityConverter x:Key="HiddenIfFalse" UseHidden="True"/>
        <view:BoolToVisibilityConverter x:Key="HiddenIfTrue" UseHidden="True" IsReversed="True"/>

        <view:IntegerToVisibilityConverter x:Key="VisibleIfZero" IntegerValue="0"/>
        <view:IntegerToVisibilityConverter x:Key="CollapsedIfZero" IntegerValue="0" IsReversed="True"/>
        <view:IntegerToVisibilityConverter x:Key="VisibleIfSeven" IntegerValue="7" FallbackBehavior="ThrowException"/>

        <Style TargetType="Button">
            <Setter Property="Margin" Value="4"/>
            <Setter Property="MinWidth" Value="80"/>
        </Style>

        <Style TargetType="TextBlock">
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>

        <Style TargetType="TextBox">
            <Setter Property="Margin" Value="4"/>
        </Style>

        <Style TargetType="view:DateTimePicker">
            <Setter Property="Margin" Value="4"/>
        </Style>
    </Application.Resources>
</Application>
